# @Filename:    sample1
# @Author:      王佳伟
# @Time:        2025-02-25 16:56
# @Describe:    数据驱动测试
import csv

def read_data(file_path):
    test_data = []
    with open(file_path, 'r') as file:
        reader = csv.DictReader(file)
        for row in reader:
            test_data.append(row)
    return test_data

def with_data(test_data):
    for data in test_data:
        print(data)

if __name__ == '__main__':
    test_data = read_data('test_data.csv')
    with_data(test_data)
